import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/print_not_single_entry_details_entity.dart';

PrintNotSingleEntryDetailsEntity $PrintNotSingleEntryDetailsEntityFromJson(Map<String, dynamic> json) {
  final PrintNotSingleEntryDetailsEntity shipperEntity = PrintNotSingleEntryDetailsEntity();

  final String? goodsName = jsonConvert.convert<String>(json['goodsName']);
  if (goodsName != null) {
    shipperEntity.goodsName = goodsName;
  }

  final double? count = jsonConvert.convert<double>(json['count']);
  if (count != null) {
    shipperEntity.count = count;
  }

  final double? weight = jsonConvert.convert<double>(json['weight']);
  if (weight != null) {
    shipperEntity.weight = weight;
  }

  return shipperEntity;
}

Map<String, dynamic> $PrintNotSingleEntryDetailsEntityToJson(PrintNotSingleEntryDetailsEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['goodsName'] = entity.goodsName;
  data['count'] = entity.count;
  data['weight'] = entity.weight;
  return data;
}
